import {createRouter, createWebHashHistory} from 'vue-router'

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            name: 'editor',
            component: () => import('@/view/index'),
        },
        {
            path: '/preview',
            name: 'preview',
            component: () => import('@/packages/preview')
        }
    ]
})
export default router